package com.xixi.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xixi.pojo.query.OperationQueryParm;
import com.xixi.pojo.vo.OperationVO;
import com.xixi.pojo.vo.Result;
import com.xixi.service.OperaterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/operation")
public class OperaterController {
    @Autowired
    private OperaterService operationService;
    @GetMapping("/page")
    public Result page(OperationQueryParm operationQueryParm) {
        IPage<OperationVO> page = operationService.page(operationQueryParm);
        return Result.success(page);
    }
}
